package com.i2works.smartluolong.web.dal.company.dao;

import com.alibaba.fastjson.JSONObject;
import com.i2works.smartluolong.utils.basecommon.BaseCommonDAO;
import com.i2works.smartluolong.utils.exception.DAOException;
import com.i2works.smartluolong.web.entity.company.CompanyApplyDO;
import com.i2works.smartluolong.web.entity.company.CompanyApplyQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 工商注册 - 持久层接口
 *
 * @author Liu Yutao <koal@vip.qq.com>
 * @date 2018/3/14 16:36
 */

@Mapper
@Repository("companyApplyDAO")
public interface ICompanyApplyDAO extends BaseCommonDAO<CompanyApplyQuery, CompanyApplyDO> {

    /**
     * 获取审核人员可管理的申请列表
     */
    List<CompanyApplyDO> queryListByAuditor(CompanyApplyQuery query) throws DAOException;

    /**
     * 获取审核人员可管理的申请列表统计
     */
    Integer queryCountByAuditor(CompanyApplyQuery query) throws DAOException;

    /**
     * 查询证件领取人的手机号（法人和代办人）
     */
    String queryPhoneByCertHolder(CompanyApplyQuery query) throws DAOException;


    /**
     * 查询证件领取人的身份证号（法人和代办人）
     */
    String queryIdcardByCertHolder(CompanyApplyQuery query) throws DAOException;

    /**
     * 查询报表列表
     */
    List<JSONObject> queryReportList(CompanyApplyQuery query) throws DAOException;

}
